package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 添加员工
     * @param employeeDTO
     * @return
     */
    Integer addEmp(EmployeeDTO employeeDTO);

    /**
     * 员工分页查询
     *
     * @param employeePageQueryDTO
     * @return
     */
    PageResult pageEmp(EmployeePageQueryDTO employeePageQueryDTO);


    /**
     * 设置员工状态
     *
     * @param id
     * @param status
     * @return
     */
    Integer setStatus(Integer id, Integer status);

    void editPassword(PasswordEditDTO passwordEditDTO);

    Employee getEmpById(Integer id);

    void updateEmp(EmployeeDTO employeeDTO);
}
